package com.yuanfeng.business.controller;

import com.yuanfeng.commoms.dto.userms.UserTokenBeanDTO;
import com.yuanfeng.commoms.util.ResponseResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ShopAccountPeriodController
 * @Description 用户账期
 * @Author hyq
 * @Date 2023/6/19 14:38
 * @Version 1.0
 **/
@RestController
@RequestMapping("shop/accountPeriod")
public class ShopAccountPeriodController extends BaseController{


    /**
     * 根据店铺和用户查询是否开启账期
     *
     * @param userTokenBeanDTO
     * @return
     */
    @PostMapping("/queryAccountByIds")
    public ResponseResult queryAccountByIds(@RequestBody UserTokenBeanDTO userTokenBeanDTO) {
        ResponseResult result = shopAccountPeriodService.queryAccountByIds(userTokenBeanDTO);
        return result;
    }
}
